package com.kpmg.datalake.accountcheck.vo;

import com.kpmg.datalake.accountcheck.service.impl.AccountCheckServiceImpl;
import java.io.Serializable;

public class AccountCheckRowVO implements Serializable {
	private static final long serialVersionUID = 8278596334486920976L;
	// 账目的主键Id
	private String chkId;
	// 本方名称
    private String ownerName;
    // 对方名称
    private String tradeName;
    // 科目类型
    private String courseType;
    // 记账金额
    private String bookMoney;
    // 抵消金额
    private String offsetMoney;
    // 差异金额
    private String diffMoney;
    // 抵消类型
    private String offsetType;
    // 抵消类型名称
    private String offsetTypeName;
    // 备注
    private String remark;
    
    public String getOwnerName() {
		return ownerName;
	}
	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName;
	}
    // 本方公司code
    private String corpCode;
    // 对方公司code
    private String cstCode;
    // 分录批次号
    private String mtchBtchId;
    // 本方或对方 对应RSTL_CD
    private String chkType;
    // 记账总额
    private String bookTotal;
    // 抵消总额
    private String offsetTotal;
    // 差异总额
    private String diffTotal;
    // 是否可删除
    private boolean deleteFlag;

    // 匹配规则名称
    private String mappingName;
	public String getChkId() {
		return chkId;
	}

	public void setTradeName(String tradeName) {
		this.tradeName = tradeName;
	}
	public String getCourseType() {
		return courseType;
	}
	public void setCourseType(String courseType) {
		this.courseType = courseType;
	}
	public String getBookMoney() {
		return bookMoney;
	}
	public void setBookMoney(String bookMoney) {
		this.bookMoney = bookMoney;
	}
	public String getOffsetMoney() {
		return offsetMoney;
	}
	public void setOffsetMoney(String offsetMoney) {
		this.offsetMoney = offsetMoney;
	}
	public String getDiffMoney() {
		return diffMoney;
	}
	public void setDiffMoney(String diffMoney) {
		this.diffMoney = diffMoney;
	}
	public String getOffsetType() {
		return offsetType;
	}
	public void setOffsetType(String offsetType) {
		this.offsetType = offsetType;
	}
	public String getOffsetTypeName() {
		if(this.offsetTypeName == null) {
			String temp = "";
			if(AccountCheckServiceImpl.MATCH_AUTO_EQUAL.equals(this.offsetType)) {
				temp = "自动-相等抵消";
			} else if(AccountCheckServiceImpl.MATCH_MANUAL_EQUAL.equals(this.offsetType)) {
				temp = "手工-相等抵消";
			} else if(AccountCheckServiceImpl.MATCH_MANUAL_OFFSET.equals(this.offsetType)) {
				temp = "手工-抵小抵消";
			} else if(AccountCheckServiceImpl.MATCH_AUTO_OFFSET.equals(this.offsetType)) {
				temp = "自动-抵小抵消";
			} else if(AccountCheckServiceImpl.MATCH_UNILATERAL_ACCOUNT.equals(this.offsetType)) {
				temp = "自动-单边记账";
			} else if(AccountCheckServiceImpl.MATCH_SUBJECT_UNDEFINED.equals(this.offsetType)) {
				temp = "科目未配置";
			}
			return temp;
		} else {
			return offsetTypeName;
		}
	}
	public void setOffsetTypeName(String offsetTypeName) {
		this.offsetTypeName = offsetTypeName;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getCorpCode() {
		return corpCode;
	}
	public void setCorpCode(String corpCode) {
		this.corpCode = corpCode;
	}
	public String getCstCode() {
		return cstCode;
	}
	public void setCstCode(String cstCode) {
		this.cstCode = cstCode;
	}
	public String getMtchBtchId() {
		return mtchBtchId;
	}
	public void setMtchBtchId(String mtchBtchId) {
		this.mtchBtchId = mtchBtchId;
	}
	public String getChkType() {
		return chkType;
	}
	public void setChkType(String chkType) {
		this.chkType = chkType;
	}
	public String getBookTotal() {
		return bookTotal;
	}
	public void setBookTotal(String bookTotal) {
		this.bookTotal = bookTotal;
	}
	public String getOffsetTotal() {
		return offsetTotal;
	}
	public void setOffsetTotal(String offsetTotal) {
		this.offsetTotal = offsetTotal;
	}
	public String getDiffTotal() {
		return diffTotal;
	}
	public void setDiffTotal(String diffTotal) {
		this.diffTotal = diffTotal;
	}
	public boolean isDeleteFlag() {
		return deleteFlag;
	}
	public void setDeleteFlag(boolean deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
    
	public void setChkId(String chkId) {
		this.chkId = chkId;
	}
	
	public String getTradeName() {
		return tradeName;
	}

	public String getMappingName() {
		return mappingName;
	}

	public void setMappingName(String mappingName) {
		this.mappingName = mappingName;
	}
}
